package com.notary.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 法人或者其他组织信息
 * </p>
 *
 * @author xujun
 * @since 2020-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_company")
@ApiModel(value = "Company对象", description = "法人或者其他组织信息")
public class Company implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "合同id")
    private Long contractId;


    @ApiModelProperty(value = "单位名称")
    private String companyName;

    @ApiModelProperty(value = "企业地址")
    private String address;


    @ApiModelProperty(value = "法人联系电话")
    private String phone;

    @ApiModelProperty(value = "法人名字")
    private String legalName;

    @ApiModelProperty(value = "法人证件号码")
    private String legalCard;


    /**
     * 代理人名字
     **/
    @ApiModelProperty(value = "代理人名字")
    private String dailiname;

    /**
     * 代理人身份证
     **/
    @ApiModelProperty(value = "代理人身份证")
    private String dailicard;

    /**
     * 统一社会信用代码
     **/
    @ApiModelProperty(value = "统一社会信用代码")
    private String creditCode;
    /**
     * 营业执照照片
     **/
    @ApiModelProperty(value = "营业执照照片")
    private String businessLicense;

    /**
     * 其他许可文件
     **/
    @ApiModelProperty(value = "其他许可文件")
    private String licenseFile;

    @ApiModelProperty(value = "代理人邮箱")
    private String email;
    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 其他许可文件
     **/
    @TableField(exist = false)
    private List<String> fujianList;

}
